﻿<%@ Page Title="" Language="C#" MasterPageFile="../Examples.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="DotNetSources.Web.UI.Buttons.Examples.Examples._10_Button_With_ConfirmBox_In_UpdatePanel.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentDescription" runat="server">
    Button with confirm box located inside UpdatePanel.
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentExample" runat="server">
    <asp:UpdatePanel runat="server" ID="upd">
        <ContentTemplate>
            Result:
            <asp:Label runat="server" ID="lblResult" ForeColor="Red"></asp:Label><br />
            <dns:ClassicButton runat="server" ID="btn" OnClick="BtnClick" Text="Click on me"
                ConfirmText="Are you sure?" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <hr />
    <div class="code">
<pre>
    &lt;asp:UpdatePanel runat="server" ID="UpdatePanel1"&gt;
        &lt;ContentTemplate&gt;
            Result:
            &lt;asp:Label runat="server" ID="Label1" ForeColor="Red"&gt;&lt;/asp:Label&gt;&lt;br /&gt;
            &lt;dns:ClassicButton runat="server" ID="ClassicButton1" OnClick="BtnClick" Text="Click on me"
                ConfirmText="Are you sure?" /&gt;
        &lt;/ContentTemplate&gt;
    &lt;/asp:UpdatePanel&gt;
</pre>
    </div>
</asp:Content>
